#include "mainwidget.h"
#include <QApplication>
#include <QTEGui/QTEGuiGlobal>

int main(int argc, char *argv[])
{
	if( qgetenv("QT_QPA_PLATFORM") == "eglfs" )
	{
		QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
		QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
	}

	QApplication a(argc, argv);
    QTE::Gui::setBasicTouchEnable();

	MainWidget w;
	w.show();
	return a.exec();
}
